<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="utf-8">
<title>回答不上来的配置</title>
<%@ include file="/WEB-INF/layouts/comm/form.jsp"%>
</head>
<body>
	<div class="mod_header">
		<div class="title">
			<h2 id="h_title">编辑回答不上来的配置</h2>
		</div>
	</div>
	<ol class="breadcrumb">
		<li><a href="#">微信设置</a></li>
		<li><a href="${ctx}/webCustomer/adv/index_text">回答不上来的配置</a></li>
		<li class="active">编辑文本</li>
	</ol>
	<div class="mod_basic">
		<div class="title">
			<h3>编辑回答不上来的配置</h3>
		</div>

		<div class="content">
			<div class="sub_content">
				<form class="form-horizontal" action="index_nomsg/save"
					id="advPay_form" method="post">
					<input type="hidden" class="form-control" id="id" name="id"
						value="${advPay.id}"> <input type="hidden"
						class="form-control" id="id" name="id" value="${advPay.id}">
					<div class="form-group">
						<label for="title" class="col-sm-2 control-label">触发时机：</label>
						<p class="form-control-static">客户回复无回答的时候将会触发此回复。</p>
					</div>
					<div class="form-group">
						<label for="title" class="col-sm-2 control-label">回复文字内容：</label>
						<div class="col-sm-10">
							<textarea class="form-control" rows="3" id="info" name="info">${advPay.info }</textarea>
							<span id="helpBlock" class="help-block">限制120字内;</span>
						</div>
					</div>
					<div class="form-group">
						<label for="title" class="col-sm-2 control-label">回复图文关键词</label>
						<div class="col-sm-10">
							<input type="text" class="form-control" id="keyName"
								name="keyName" value="${advPay.keyName}">
						</div>
					</div>
					<div class="form-group">
						<div class="col-sm-offset-2 col-sm-10">
							<button type="submit" class="btn btn-primary">保存</button>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
	<footer_body> <script>
		base.menu.active('menu_104');

		base.form
				.ajaxSubmit({
					formid : '#advPay_form',
					cbfun : function(data) {
						if (data.data == true) {
							BootstrapDialog
									.show({
										message : "设置成功",
										size : BootstrapDialog.SIZE_SMALL,
										buttons : [ {
											label : '继续编辑',
											cssClass : 'btn-success',
											action : function(dialogRef) {
												window.location.href = "${ctx}/webCustomer/advPay/index_nomsg";
											}
										} ]
									});
						} else {
							BootstrapDialog.alert("保存失败，请重试");
						}
					}
				});
	</script> </footer_body>
</body>
</html>